package com.ruoyi.business.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.business.domain.HurtFollowRecord;

/**
 * 随访记录Service接口
 *
 * @author ruoyi
 * @date 2024-04-19
 */
public interface IHurtFollowRecordService
{
    /**
     * 查询随访记录
     *
     * @param id 随访记录主键
     * @return 随访记录
     */
    public HurtFollowRecord selectHurtFollowRecordById(Long id);

    /**
     * 查询随访记录列表
     *
     * @param hurtFollowRecord 随访记录
     * @return 随访记录集合
     */
    public List<HurtFollowRecord> selectHurtFollowRecordList(HurtFollowRecord hurtFollowRecord);

    /**
     * 新增随访记录
     *
     * @param hurtFollowRecord 随访记录
     * @return 结果
     */
    public int insertHurtFollowRecord(HurtFollowRecord hurtFollowRecord);

    /**
     * 修改随访记录
     *
     * @param hurtFollowRecord 随访记录
     * @return 结果
     */
    public int updateHurtFollowRecord(HurtFollowRecord hurtFollowRecord);

    /**
     * 批量删除随访记录
     *
     * @param ids 需要删除的随访记录主键集合
     * @return 结果
     */
    public int deleteHurtFollowRecordByIds(Long[] ids);

    /**
     * 删除随访记录信息
     *
     * @param id 随访记录主键
     * @return 结果
     */
    public int deleteHurtFollowRecordById(Long id);

    /**
     * 获取患者下次随访记录
     * @param patientId
     * @return
     */
    Map<String,Object> getNextFollow(Long patientId);

    /**
     * 获取历史随访记录
     * @param patientId
     * @return
     */
    List<Map<String,Object>> getHistoryFollowList(Long patientId);

    /**
     * 获取患者随访记录
     * @param patientId
     * @return
     */
    List<Map<String,Object>> getPatientFollowList(Long patientId);
}
